#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_093;

TEST_CASE("93. Restore IP Addresses", "[093]") {

CHECK(Solution().restoreIpAddresses("25525511135") == std::vector<std::string>{"255.255.11.135","255.255.111.35"});
CHECK(Solution().restoreIpAddresses("0000") == std::vector<std::string>{"0.0.0.0"});
CHECK(Solution().restoreIpAddresses("1111") == std::vector<std::string>{"1.1.1.1"});
CHECK(Solution().restoreIpAddresses("010010") == std::vector<std::string>{"0.10.0.10","0.100.1.0"});
CHECK(Solution().restoreIpAddresses("101023") == std::vector<std::string>{"1.0.10.23","1.0.102.3","10.1.0.23","10.10.2.3","101.0.2.3"});

}
